import { axios } from '@/utils/request'

/**
 * 查询房间家私配置表
 *
 * @author anti
 * @date 2021-04-18 17:08:44
 */
export function roomFurniturePage (parameter) {
  return axios({
    url: '/roomFurniture/page',
    method: 'get',
    params: parameter
  })
}

/**
 * 房间家私配置表列表
 *
 * @author anti
 * @date 2021-04-18 17:08:44
 */
export function roomFurnitureList (parameter) {
  return axios({
    url: '/roomFurniture/list',
    method: 'get',
    params: parameter
  })
}

export function getRoomFurnitureListByRoomId (parameter) {
  return axios({
    url: '/roomFurniture/getRoomFurnitureListByRoomId/' + parameter,
    method: 'get',
    params: parameter
  })
}

export function getRoomFurnitureListByLeaseId (parameter) {
  return axios({
    url: '/roomFurniture/getRoomFurnitureListByLeaseId/' + parameter,
    method: 'get',
    params: parameter
  })
}

/**
 * 添加房间家私配置表
 *
 * @author anti
 * @date 2021-04-18 17:08:44
 */
export function roomFurnitureAdd (parameter) {
  return axios({
    url: '/roomFurniture/add',
    method: 'post',
    data: parameter
  })
}

/**
 * 编辑房间家私配置表
 *
 * @author anti
 * @date 2021-04-18 17:08:44
 */
export function roomFurnitureEdit (parameter) {
  return axios({
    url: '/roomFurniture/edit',
    method: 'post',
    data: parameter
  })
}

/**
 * 删除房间家私配置表
 *
 * @author anti
 * @date 2021-04-18 17:08:44
 */
export function roomFurnitureDelete (parameter) {
  return axios({
    url: '/roomFurniture/delete',
    method: 'post',
    data: parameter
  })
}
